import request from '@/utils/request'

// 查询人员持证信息列表
export function listCertifications(query) {
  return request({
    url: '/mag/certifications/list',
    method: 'get',
    params: query
  })
}

// 查询人员持证信息详细
export function getCertifications(id) {
  return request({
    url: '/mag/certifications/' + id,
    method: 'get'
  })
}

// 新增人员持证信息
export function addCertifications(data) {
  return request({
    url: '/mag/certifications',
    method: 'post',
    data: data
  })
}

// 修改人员持证信息
export function updateCertifications(data) {
  return request({
    url: '/mag/certifications',
    method: 'put',
    data: data
  })
}

// 删除人员持证信息
export function delCertifications(id) {
  return request({
    url: '/mag/certifications/' + id,
    method: 'delete'
  })
}
